/*
 * @Author: your name
 * @Date: 2021-03-08 09:16:31
 * @LastEditTime: 2021-03-09 19:38:02
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \day\src\services\stydent.ts
 */
import {request} from 'umi';
import {IStudentID,} from '@/interface/students';
//请求所有学生
export const students = () => {
    return request('/manger/student',{method:'get'})
}
//删除学生
export const studentID = (data:IStudentID) => {
    return request(`/manger/student/${data.id}`,{method:'Delete',data})
}